-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[Backport to 16_0_X (#49860)] Refactor of PortableCollections #49953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport to 16_0_X (#49860)] Refactor of PortableCollections #49953
Conversation
|
type ngt |
|
backport #49860 |
|
A new Pull Request was created by @Electricks94 for CMSSW_16_0_X. It involves the following packages:
@Alejandro1400, @Dr15Jones, @JanChyczynski, @Martin-Grunewald, @Moanwar, @arunhep, @atpathak, @bsunanda, @civanch, @cmsbuild, @ctarricone, @francescobrivio, @fwyzard, @gabrielmscampos, @hjkwon260, @jfernan2, @kpedro88, @makortel, @mandrenguyen, @mdhildreth, @mmusich, @nothingface0, @perrotta, @rseidita, @srimanob, @valsdav, @y19y19 can you please review it and eventually sign? Thanks. cms-bot commands are listed here
|
|
cms-bot internal usage |
|
please test |
|
urgent aimed at CMSSW_16_0_0 |
|
+hlt
|
|
Pull request #49953 was updated. @Dr15Jones, @Moanwar, @bsunanda, @civanch, @cmsbuild, @fwyzard, @hjkwon260, @jfernan2, @kpedro88, @makortel, @mandrenguyen, @mdhildreth, @srimanob, @valsdav, @y19y19 can you please check and sign again. |
|
please test |
|
+1 Size: This PR adds an extra 272KB to repository Comparison SummarySummary:
|
|
+1 |
|
+heterogeneous |
|
+1 |
|
merge |
The PortableCollections have an inconsistent interface if used with a normal Layout or with an SoABlocks Layout. In the later case, the Alpaka Queue is the first argument, while in the first case it is the other way around. This PR addresses the problem and sets the Alpaka Queue always as the first argument.
Furthermore, the constructors of the PortableCollections are streamlined to always use std::integal as the input type for the elements. Then a checked_cast has been implemented that checks if casting to int is safe. If so, the inputs are casted to int. Casting to int is necessary since the SoA Layouts use int for the number of elements due to the dependency on ROOT.
This PR has to be addressed after #49882.
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
This is a backport of #49860 to CMSSW_16_0_X
This PR also contains commits from #49882. It is meant to be merged after #49882 since it builds on top of it
ATTN @fwyzard
@felicepantaleo fyi